package com.kaili.basic.service.impl;

import com.kaili.basic.mapper.MdmUserSafetyMapper;
import com.kaili.basic.pojo.entity.MdmUserSafetyEntity;
import com.kaili.basic.pojo.vo.MdmUserSafetyVo;
import com.kaili.basic.service.MdmUserSafetyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Desc:
 * @author: shenliqiang
 * @Time: 2019/7/29 20:19
 * @Copyright: © 2018 杭州凯立通信有限公司 版权所有
 * @Warning: 本内容仅限于公司内部传阅, 禁止外泄或用于其它商业目的
 */
@Service
@Transactional
public class MdmUserSafetyServiceImpl implements MdmUserSafetyService {

    @Autowired
    private MdmUserSafetyMapper mapper;

    @Override
    public void addMdmUserSafety(MdmUserSafetyEntity entity) {
        this.mapper.addMdmUserSafety(entity);
    }

    @Override
    public void updateMdmUserSafety(MdmUserSafetyEntity entity) {
        this.mapper.updateMdmUserSafety(entity);
    }

    @Override
    public void deleteMdmUserSafety(Integer userId) {
        this.mapper.deleteMdmUserSafety(userId);
    }

    @Override
    public MdmUserSafetyVo queryMdmUserSafety(Integer userId) {
        return this.mapper.queryMdmUserSafety(userId);
    }
}
